package gat.domain.service.tg.impl;

import com.bitsun.core.common.persistence.BasePService;
import com.bitsun.core.common.persistence.IPService;
import gat.convertor.tg.TgBotReqDtoConvertor;
import gat.convertor.tg.TgBotResDtoConvertor;
import gat.domain.service.tg.TgBotDomainService;
import gat.infrastructure.persistence.dao.tg.TgBotMapper;
import gat.infrastructure.persistence.po.tg.TgBotPo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Felix Woo （junfengwstar@gmail.com）
 * @Date: 2019-09-20 19:40
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Service("tgBotDomainService")
public class TgBotDomainServiceImpl implements TgBotDomainService {

    @Autowired
    private TgBotReqDtoConvertor tgBotReqDtoConvertor;

    @Autowired
    private TgBotResDtoConvertor tgBotResDtoConvertor;

    private IPService<TgBotPo> tgBotPoService;

    @SuppressWarnings("SpringJavaAutowiringInspection")
    public TgBotDomainServiceImpl(TgBotMapper tgBotMapper) {
        this.tgBotPoService = new BasePService(tgBotMapper);
    }
}